#pragma once

#ifdef _WINDOWS
#include <windows.h>
#else
	#ifdef unix
		#include "sys/time.h"
	#endif
#endif

class AccurateTimer
{
public:
	AccurateTimer(void);
	~AccurateTimer(void);

	double reset();
	double poll();

private:
#ifdef _WINDOWS
	__int64 prevCount;
	__int64 countsPerSec;
#else
	#ifdef unix
		timeval *last;
		timeval *cur;
	#endif
#endif
};
